package ocean.chinacraft.data;

import ocean.chinacraft.common.constants.Constants;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.IRecipeType;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.registry.Registry;

/**
 * 玉石工作台合成接口
 *
 * @author zhang
 * @since 2021/11/20
 */
public interface IJadeWorkbenchRecipe extends IRecipe<IInventory> {

    ResourceLocation TYPE_ID = new ResourceLocation(Constants.MOD_ID, "jadeworkbench");

    @Override
    default IRecipeType<?> getType() {
        return Registry.RECIPE_TYPE.getOptional(TYPE_ID).get();
    }

    @Override
    boolean canCraftInDimensions(int width, int height);

    @Override
    default boolean isSpecial() {
        return true;
    }
}
